package org.jeecg.modules.monitoring.j_monitoring.service;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.monitoring.j_monitoring.entity.EquipmentItem;
import org.jeecg.modules.monitoring.j_monitoring.entity.MCabinet;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.monitoring.j_monitoring.vo.MCabinetDevice;

import java.util.List;

/**
 * @Description: 机柜
 * @Author: xiaoyq
 * @Date:   2023-02-22
 * @Version: V1.0
 */
public interface IMCabinetService extends IService<MCabinet> {
    List<EquipmentItem> getEquipmentAllList(String id);

    List<MCabinetDevice> getDeviceListByIds(List<String> idList);

    /**
     * 根据机房名称统计机柜数量
     * @param room
     * @return
     */
    Integer getCabinetCountByRoom(@Param("room")String room);

    /**
     * 根据机房名称统计空调数量
     * @param room
     * @return
     */
    Integer getAirCountByRoom(@Param("room")String room);
}
